<template>
  <div class="box">
    <div class="head-fixed">
      <div class="head">
        <div class="head-div">
          <img src="../assets/zjt2.png" alt="" class="back" @click="back()" />
        </div>
        <div class="head-search">邀约信息</div>
        <div>发送</div>
      </div>
    </div>
    <div class="content">
      <div class="inpBox">
        <span>邀约职位</span>
        <div @click="prop()">
          <input type="text" v-model="payValue" placeholder="请选择邀约职位" readonly/>
        </div>
      </div>
      <div class="inpBox">
        <span>公司名称</span>
        <div>
          <input type="text" placeholder="请输入公司名称" />
        </div>
      </div>
      <div class="inpBox">
        <span>面试时间</span>
        <div>
          <input type="date" placeholder="请输入面试时间" />
        </div>
      </div>
      <div class="inpBox">
        <span>面试地点</span>
        <div>
          <input type="text" placeholder="请输入面试地点" />
        </div>
      </div>
      <div class="inpBox">
        <span>联系人</span>
        <div>
          <input type="text" placeholder="请输入联系人" />
        </div>
      </div>
      <div class="inpBox">
        <span>联系电话</span>
        <div>
          <input type="text" placeholder="请输入联系电话" />
        </div>
      </div>
      <div class="inpBoxs">
        <div class="inpBox">
          <span>备注</span>
          <span style="font-size:12px;color:#757575">需要应聘者准备的东西填写在下方</span>
        </div>
        <textarea name="" id="" placeholder="请填写您的要求" v-model="text"></textarea>
      </div>
    </div>
    <mt-popup v-model="payIf" position="bottom">
      <p class="mt-p">
        <span @click="off()">取消</span>请选择邀约职位
        <span @click="on()">确定</span>
      </p>
      <mt-picker
        :slots="payList"
        @change="payChange"
        value-key="value"
        class="picker"
      ></mt-picker>
    </mt-popup>
  </div>
</template>

<script>
import { Popup, Picker } from "mint-ui";
var payValue = "";
export default {
  inject: ["reload"],
  name: "invite",
  components: {Popup, Picker},
  created() {
    // created 在模板渲染成html前调用，即通常初始化某些属性值，然后再渲染成视图
  },
  mounted() {
    // mounted在模板渲染成html后调用，通常是初始化页面完成后，再对html的dom节点进行一些需要的操作
  },
  // data() 为变量赋值等
  data() {
    return {
      // status为状态，0是新增，1是修改
      status: localStorage.status,
      city: "",
      post:"",
      state:"",
      payValue: "",
      payIf: false,
      payList: [
        {
          values: ["xxx", "aaa", "zzz", "ddd", "eee", "www"],
        },
      ],
      pay: [],

    };
  },
  // methods 编写js函数
  methods: {
    back() {
      this.$router.go(-1); //返回上一层
    },
    act(i){
      this.welfare[i].type=!this.welfare[i].type;
    },
    prop() {
        this.payIf = !this.payIf;
    },
    payChange(picker, values) {
      payValue = picker.values[0];
    },
    on() {
        this.payValue = payValue;
        this.payIf = false;
    },
    off() {
        payValue = "";
        this.payIf = false;
    },
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
html,
body,
.tac,
.box,
.tab-left,
.tab-left .el-menu {
  height: 100%;
}

.box {
  width: 100%;
  background: #fff;
}
.head-fixed {
  width: 100%;
  height: 43px;
  position: fixed;
  z-index: 999;
}
.head {
  background: #3e63a8;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.back {
  width: 14px;
  height: 14px;
}
.head div img {
  width: 20px;
  height: 20px;
}
.head-search {
  box-sizing: border-box;
  flex: 1;
  text-align: center;
  font-size: 14px;
}
.content {
  position: relative;
  top: 43px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px 20px 20px;
}
.inpBox {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  border-bottom: 1px solid #eee;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}
.inpBox input {
  border: 0;
  flex: 1;
  outline: none;
  font-size: 14px;
  height: 30px;
  text-align: right;
}
.inpBox div {
  display: flex;
  align-items: center;
}
.inpBoxs {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.inpBoxs .inpBox{
    border: 0;
}
.inpBoxs textarea{
    width: 100%;
    height: 150px;
    margin-top: 10px;
    box-sizing: border-box;
    padding: 10px;
}
</style>
